package principle.decorator;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class client {
    public static void main(String[] args) {
        //1，点长黑
        drink order = new longBlack();
        System.out.println(order.getDes());
        System.out.println(order.cost());
        //2，加奶
        order = new milk(order);
        System.out.println(order.getDes());
        System.out.println(order.cost());
        //3，加两份巧克力
        order = new chocolate(order);
        System.out.println(order.getDes());
        System.out.println(order.cost());
        order = new chocolate(order);
        System.out.println(order.getDes());
        System.out.println(order.cost());
    }
}
